import request from '@/utils/request'

// 查询城市ip段列表
export function listCitysegment(query) {
  return request({
    url: '/ipmanagement/detecttask/list',
    method: 'get',
    params: query
  })
}

// 执行任务ip段
export function delCitysegment(id) {
  return request({
    url: '/ipmanagement/detecttask/' + id,
    method: 'delete'
  })
}

// 执行任务ip段
export function taskall() {
  return request({
    url: '/ipmanagement/detecttask/taskall',
    method: 'post'
  })
}
